package com.ytkj.digitalConstruction.httpbean.permission;

import java.util.List;

import com.ytkj.digitalConstruction.entity.permission.Menu;

/**
 * 菜单
 * @author iking
 *
 */
public class ResMenu extends Menu {

	private List<ResMenu> menus;

	/** 菜单操作关联ID */
	private int id;

	private ResOperation operation;

	public ResMenu(Menu m) {
		setMenuId(m.getMenuId());
		setMenuName(m.getMenuName());
		setMenuOrder(m.getMenuOrder());
		setParentId(m.getParentId());
		setMenuUrl(m.getMenuUrl());
		setMenuDesc(m.getMenuDesc());
	}

	/**
	 * @return the menus
	 */
	public List<ResMenu> getMenus() {
		return menus;
	}

	/**
	 * @param menus
	 *            the menus to set
	 */
	public void setMenus(List<ResMenu> menus) {
		this.menus = menus;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the operation
	 */
	public ResOperation getOperation() {
		return operation;
	}

	/**
	 * @param operation
	 *            the operation to set
	 */
	public void setOperation(ResOperation operation) {
		this.operation = operation;
	}

}
